package userInterface.imageCapture;

/**
 * Utility class for capturing displayed images.
 * @author BDS
 */
public class ImageCapture
{
    /**
     * Presents multiple dialog windows to capture a user-defined section of the visible screen.
     * @return The name of the captured image located in the relative /Images/ directory;
     *         <code>null</code> or empty if the process was unsuccessful or canceled.
     */
    public static String captureImage()
    {
        DialogCaptureOverlay captureOverlay = new DialogCaptureOverlay();
        captureOverlay.setVisible(true);
        return captureOverlay.getCapturedImageName();
    }
}
